package iblink.core;

import com.ib.client.ContractDetails;

public class ScannerData {

	private int rank;
	private ContractDetails contractDetails;
	private String distance;
	private String benchmark;
	private String projection;
	private String legsStr;

	public ScannerData(int rank, ContractDetails contractDetails,
			String distance, String benchmark, String projection, String legsStr) {
		this.rank = rank;
		this.contractDetails = contractDetails;
		this.distance = distance;
		this.benchmark = benchmark;
		this.projection = projection;
		this.legsStr = legsStr;
	}

	public String toString() {
		return getClass().getSimpleName() + "[rank[" + rank
				+ "] contractDetails.m_summary.m_local_symbol["
				+ contractDetails.m_summary.m_localSymbol + "] distance["
				+ distance + "] benchmark[" + benchmark + "] projection["
				+ projection + "] legsStr[" + legsStr + "]]";
	}

	public int getRank() {
		return rank;
	}

	public ContractDetails getContractDetails() {
		return contractDetails;
	}

	public String getDistance() {
		return distance;
	}

	public String getBenchmark() {
		return benchmark;
	}

	public String getProjection() {
		return projection;
	}

	public String getLegsStr() {
		return legsStr;
	}
}
